//
//  ChatMainViewController.m
//  MarryMe
//
//  Created by lanou3g on 16/1/13.
//  Copyright © 2016年 revocher. All rights reserved.
//

#import "ChatMainViewController.h"
#import "ChatListViewController.h"
#import "ChatFriendViewController.h"
#import "ChatPostViewController.h"
@interface ChatMainViewController ()

@end

@implementation ChatMainViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    ChatListViewController *listVC = [[ChatListViewController alloc]init];
    UINavigationController *listNC = [[UINavigationController alloc]initWithRootViewController:listVC];
     listVC.tabBarItem=[[UITabBarItem alloc]initWithTitle:@"消息" image:[UIImage imageNamed:@"iconfont-xiaoxi.png"] tag:111];
    
    ChatFriendViewController *frendVC = [[ChatFriendViewController alloc]init];
    UINavigationController * frendNC = [[UINavigationController alloc]initWithRootViewController:frendVC];
     frendVC.tabBarItem=[[UITabBarItem alloc]initWithTitle:@"好友" image:[UIImage imageNamed:@"iconfont-haoyou.png"] tag:112];
    ChatPostViewController *postVC = [[ChatPostViewController alloc]init];
    UINavigationController *postNC = [[UINavigationController alloc]initWithRootViewController:postVC];
     postVC.tabBarItem=[[UITabBarItem alloc]initWithTitle:@"提醒" image:[UIImage imageNamed:@"iconfont-tixing.png"] tag:113];
    self.viewControllers = @[listNC,frendNC,postNC];
    
    
    
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
